import 'package:flame/game.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

import '../game_center_controller.dart';
import 'game2.dart';

class GameCenterPage2 extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return GetBuilder<GameCenterController>(
        init: GameCenterController(),
        builder: (controller) {
          return Scaffold(
            appBar: AppBar(
              title: Text('键盘事件和手势操作'),
              actions: [],
            ),
            body: GameWidget(game: Game2()),
          );
        });
  }
}
